﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using log4net;
using MVCCompany.Logger;
namespace MVCCompany.Controllers
{
    public class Log4NetController : Controller
    {
        private static readonly ILog log = DebugLogger.GetDebugLogger();
        //
        // GET: /Log4Net/

        public ActionResult Index()
        {
            if (log.IsDebugEnabled)
            {
                log.Debug("执行了Index方法"+System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            }
            return View();
        }

    }
}
